package com.gtm.model;

import com.mongodb.DBObject;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import javax.persistence.Version;
import java.util.Date;
import java.util.List;

/**
 * Created by ryan on 2017/12/3.
 */
@Document(collection = "group")
public class Group {
    @Id
    private String id;
    private String host;//主持人
    private String address;//地点
    private Date date;//时间
    private String countType="1辩";//1辩还是2辩
    private String type;//开题分组为0   论文分组为1
    private List<String> teacherList;//老师列表
    private List<String> stuList;//学生列表
    private List<DBObject> record;//评阅老师以及对应的学生名以及课题名称课题id
    @CreatedDate
    private Date createDate;
    private Boolean markedDel=false;
    private String state="pending";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getCountType() {
        return countType;
    }

    public void setCountType(String countType) {
        this.countType = countType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<String> getTeacherList() {
        return teacherList;
    }

    public void setTeacherList(List<String> teacherList) {
        this.teacherList = teacherList;
    }

    public List<DBObject> getRecord() {
        return record;
    }

    public void setRecord(List<DBObject> record) {
        this.record = record;
    }

    public List<String> getStuList() {
        return stuList;
    }

    public void setStuList(List<String> stuList) {
        this.stuList = stuList;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Boolean getMarkedDel() {
        return markedDel;
    }

    public void setMarkedDel(Boolean markedDel) {
        this.markedDel = markedDel;
    }

    public String getState() {
        return state;
    }

    @Override
    public String toString() {
        return "Group{" +
                "id='" + id + '\'' +
                ", host='" + host + '\'' +
                ", address='" + address + '\'' +
                ", date=" + date +
                ", countType='" + countType + '\'' +
                ", type='" + type + '\'' +
                ", teacherList=" + teacherList +
                ", stuList=" + stuList +
                ", record=" + record +
                ", createDate=" + createDate +
                ", markedDel=" + markedDel +
                ", state='" + state + '\'' +
                '}';
    }

    public void setState(String state) {
        this.state = state;
    }


}
